package com.jsbs.iam.ident.mapper;

import com.jsbs.iam.ident.entity.IamBlacklistManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IamBlacklistManagementMapper {
    int deleteByPrimaryKey(@Param("list") List<String> list);

    int insert(IamBlacklistManagement record);

    int insertSelective(@Param("blacklistManagementList")List<IamBlacklistManagement> blacklistManagementList);

    IamBlacklistManagement selectByPrimaryKey(@Param("userId")String userId);

    int updateByPrimaryKeySelective(IamBlacklistManagement record);

    int updateByPrimaryKey(IamBlacklistManagement record);

    /**
     * 黑名单分页查询和搜索
     * @param userIdOrPhone
     * @return
     */
    List<IamBlacklistManagement> getBlacklistManagementAll(@Param("userIdOrPhone") String userIdOrPhone);
}